import Vue from 'vue'
import Router from 'vue-router'
import home from '@/components/Home/home'
import about from '@/components/About/about'
import dishes from '@/components/Disher/dishes'
import order from '@/components/Order/order'
import content from '@/components/Content/content'
import news from '@/components/News/news'
import phone from '@/components/News/phone'
import noticeDetail from '@/components/News/noticeDetail'
import informationDetail from '@/components/Disher/informationDetail'
import law from '@/components/footerPage/law'
import detail from '@/components/Home/detail'
import casedetail from '@/components/Home/casedetail'

Vue.use(Router)

export default new Router({
  mode: 'history',
  linkActiveClass: 'active',
  routes: [
    {
      path:'/',
      redirect:'/Home/home'
    },
    {
      path:'/Home/home',
      name:'home',
      component:home
    },
    {
      path:'/About/about',
      name:'about',
      component:about
    },
    {
      path:'/Disher/dishes',
      name:'dishes',
      component:dishes
    },
    {
      path:'/News/news',
      name:'news',
      component:news,
    },
    {
      path:'/Order/order',
      name:'order',
      component:order
    },
    {
      path:'/Content/content',
      name:'content',
      component:content
    },{
      path:'/News/phone',
      name:'phone',
      component:phone,
    },{
      path:'/News/noticeDetail/:id',
      name:'noticeDetail',
      component:noticeDetail,
    },{
      path:'/Disher/informationDetail/:id',
      name:'informationDetail',
      component:informationDetail
    },{
      path:'/footerPage/law',
      name:'law',
      component:law
    },{
      path:'/Home/detail/:id',
      name:'detail',
      component:detail
    },{
      path:'/Home/casedetail/:zone',
      name:'casedetail',
      component:casedetail
    }
  ]
})
